//
//  AnalysisViewController.h
//  PurchasingMeeting
//
//  Created by zhuang yihang on 7/12/13.
//  Copyright (c) 2013 YX. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseViewController.h"
#import "ShopViewController.h"
#import "XYPieChart.h"
#import "TKImageCache.h"
@class KeyObject;
/*
 数据分析页面
 */

@interface AnalysisViewController : BaseViewController<XYPieChartDataSource,XYPieChartDelegate,UIScrollViewDelegate>
{
    UIImageView *tint;
    UIScrollView *scroll;
    int totalcount;
    float totalcountrate;
    int totalprice;
    float totalpricerate;
    int totalsku;
    int totalskurate;
    int totalcate;
    int totalcaterate;
    ShopViewController *controller;
    NSArray *product;
    float totalnum;
    float totalpricenum;
    float num;
    UIButton *cloth;
    UIButton *totalshop;
    NSString *coatname;
    UIView *view;
    UIButton *typeFilter;
    
    //存储报表的类型
    NSArray* reporttype;
    //当前被选中报表编号
    int selecedReport;
    //当前被选中Shopid
    NSString* selectedShopid;
    //当前过滤条件,数组元素为keyobject记录了当前各过滤条件选择的条件
    NSMutableArray* KeyFilter;
    
    XYPieChart *chart;
    NSMutableArray *countarr;
    int countcolumn;
    NSMutableArray *pricearr;
    int pricecolumn;
    NSMutableArray *titlearr;
    int titlecolumn;
    NSMutableArray *colorarr;
    
    NSArray *searchproduct;
    TKImageCache *imageCache_;
    UIImageView *productimageview;
    NSArray *reportarray;
}

@end
